package pojo;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;

public class Animal {

    private String name;
    private String img;
    private String sex;
    private String disposition; //种族
    private String birthday;
    private String petPhrase;  //口头禅


    public Animal() {

    }

    public Animal(String name, String img, String sex, String disposition, String birthday, String petPhrase) {
        this.name = name;
        this.img = img;
        this.sex = sex;
        this.disposition = disposition;
        this.birthday = birthday;
        this.petPhrase = petPhrase;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDisposition() {
        return disposition;
    }

    public void setDisposition(String disposition) {
        this.disposition = disposition;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getPetPhrase() {
        return petPhrase;
    }

    public void setPetPhrase(String petPhrase) {
        this.petPhrase = petPhrase;
    }

    @Override
    public String toString() {
        return new JSONObject(this).toString();
    }
}
